import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const userType = 'user-Type'

export function getToken() {
  return Cookies.get(TokenKey)
}
export function getLoginType() {
  return Cookies.get(userType)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function setLoginType(type) {
  return Cookies.set(userType, type)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function removeLoginType() {
  return Cookies.remove(userType)
}
